<include file="public@header" />
<script type="text/html" id="photos-item-tpl">
	<li id="saved-image{id}">
		<input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
		<input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
			   style="width: 200px;" title="图片名称">
		<img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
			 onclick="imagePreviewDialog(this.src);">
		<a href="javascript:gpyUploadOneImage('图片上传','#photo-{id}','{$result.tomb_num}');">替换</a>
		<a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
	</li>
</script>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:url('Aftersale/badindex')}">不良记录</a></li>
			<li class="active"><a href="{:url('Aftersale/badgetdetail')}">查看记录详情</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:url('Service/buriedfinish_post')}" method="post" enctype="multipart/form-data">
            <fieldset>
				<div class="p_title">
					<span class="span_title">客户信息</span>
				</div>
				<div class="control-group1-p">
					<div class="control-group1" style="width:30%">
						<label class="control-label">购买人姓名:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" readonly value="{$results['buyer_name']}">
						</div>
					</div>
					<div class="control-group1" style="width:30%">
						<label class="control-label">身份证号:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" readonly value="{$results['customer_account']}">
						</div>
					</div>
					<div class="control-group1" style="width:35%">
						<label class="control-label">联系电话:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" readonly value="{$results['buyer_phone']}">
						</div>
					</div>
					<div class="control-group1" style="width:30%">
						<label class="control-label">墓位编号:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" readonly value="{$results['tomb_num']}">
						</div>
					</div>
					<div class="control-group1"  style="width:50%">
						<label class="control-label">具体位置:</label>
						<div class="controls">
							<input type="text" class="form-control" style="width: 400px" name="pro_color" readonly value="{$results['tomb_region']}">
						</div>
					</div>
					<div class="control-group1" style="width:30%">
						<label class="control-label">购买日期:</label>
						<div class="controls">
							<php>echo date('Y-m-d H:i', $results['closing_time'])</php>
						</div>
					</div>
					<div class="control-group1" style="width:30%">
						<label class="control-label">墓位状态:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" required value="{$results['col_status_name']}">
						</div>
					</div>
				</div>


				<div class="p_title">
					<span class="span_title">记录内容</span>
				</div>
				<div class="control-group1-p">
					<div class="control-group1" style="width:45%">
						<label class="control-label">创建事件:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" readonly value="{$log_name}">
						</div>
					</div>
					<div class="control-group1" style="width:45%">
						<label class="control-label">创建时间:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" readonly value="{$add_time}">
						</div>
					</div>
					<div class="control-group1" style="width:45%">
						<label class="control-label">记录照片:</label>
						<div class="controls">
							<img id="log_photos1"
								 src="{:cmf_get_image_preview_url($log_photos1)}"
								 style="height:36px;width: 36px;"
								 onclick="parent.imagePreviewDialog(this.src);">
							<img id="log_photos2"
								 src="{:cmf_get_image_preview_url($log_photos2)}"
								 style="height:36px;width: 36px;"
								 onclick="parent.imagePreviewDialog(this.src);">
						</div>
					</div>
					<div class="control-group1" style="width:40%">
						<label class="control-label">记录人:</label>
						<div class="controls">
							<input type="text" class="form-control" name="pro_name" readonly value="{$user_nickname}">
						</div>
					</div>

					<div class="control-group1" style="width:90%">
						<label class="control-label">详细描述:</label>
						<div class="controls">
							<textarea readonly cols="100" rows="6">{$log_desc}</textarea>
						</div>
					</div>
				</div>

			</fieldset>
			<div class="form-actions">

				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

</body>
</html>